package user;

import operations.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-12-15
 * Time: 10:02
 */
public class NormalUser extends User {
    public NormalUser(String name){
        super(name);
        this.iOperations = new IOperation[]{
                new ExitOperation(),
                new FindOperation(),
                new Correction(),
                new DisplayOperation(),
                new SortOperation(),

        };
    }
    @Override
    public int menu() {
        System.out.println("*******************************");
        System.out.println("Hello,"+name+",欢迎来到学生信息管理系统");
        System.out.println("********* 1.查找学生 ************");
        System.out.println("********* 2.修改学生 ************");
        System.out.println("********* 3.显示学生 ************");
        System.out.println("********* 4.排序学生 ************");
        System.out.println("********* 0.退出系统 ************");
        System.out.println("*******************************");
        System.out.println("请输入你的选择：");
        Scanner scan =new Scanner(System.in);
        int choice = scan.nextInt();
        return  choice;
    }
}
